<script type="text/javascript">
        function tours_navtab_onClose() {
                $(this).navtab('switchTab', 'Product/tours');
        }

</script>
<div class="bjui-pageHeader">
        <form id="pagerForm" data-toggle="ajaxsearch" action="{url}" method="post">
                <input type="hidden" name="pageSize" value="{$numPerPage}" >
                <input type="hidden" name="pageCurrent" value="{$currentPage}">
                <input type="hidden" name="orderField" value="{$orderField}">
                <input type="hidden" name="orderDirection" value="{$orderDirection}">
                <div class="bjui-searchBar">
                        <label>配送地：</label>
                        <input type="hidden" name="locationp.id"  value="{$_REQUEST['locationp_id']|default=''}" />
                        <input type="text" data-title='选择目的地' name="locationp.name" value="{$_REQUEST['locationp_name']|default=''}" size="10" data-toggle="lookup" data-url="{:U('Pub/get_location_single')}" data-group="locationp" data-width="300" data-height="400" readonly="true" />
                        <label>ID：</label>
                        <input type="text" name="id" value="{$_REQUEST['id']|default=''}"  class="form-control" size="8" />
                        <label>橱柜名称：</label>
                        <input type="text" name="title" value="{$_REQUEST['title']|default=''}"  class="form-control" size="15" />
                        <label>编号：</label>
                        <input type="text" name="code" value="{$_REQUEST['code']|default=''}"  class="form-control" size="10" />
                        <label>主题筛选：</label>
                        <select name="theme_id" class="combox" data-toggle="selectpicker" >
                                <option value="">全部主题</option>
                                {volist name='theme' id ='vo'}                                
                                <option value="{$vo.id}" 
                                        {eq name="$_REQUEST['theme_id']|default=''" value='$vo.id'} 
                                        selected='selected' 
                                        {/eq}>{$vo.title}</option>
                                {/volist}
                        </select>

                        <button type="submit"  class="btn-default" data-icon="search">查询</button>
                        <a class="btn btn-orange" href="javascript:;" onclick="$(this).navtab('reloadForm', true);" data-icon="undo">清空查询</a>
                        <ul style="margin-top:10px;">
                                <li>
                                        <a href="{:U('Product/tours_add')}" data-on-close="tours_navtab_onClose" class="btn btn-green" data-id="product_tours_add" data-reload-warn="本页已有打开的内容，确定将刷新本页内容，是否继续？" data-toggle="navtab">新增橱柜</a>
                                        <a href="{:U('Product/tours_del')}" data-idname="id" data-group="id" data-toggle="doajaxchecked"  class="btn btn-red"  data-confirm-msg="确定要删除选中的信息吗？">删除选中</a>
                                        <a href="{:U('Product/tours_show_good?act=do')}" class="btn btn-default" data-icon="flag" data-idname="id" data-group="id" data-toggle="doajaxchecked">推荐</a>
                                        <a href="{:U('Product/tours_show_good?act=un')}" class="btn btn-orange" data-idname="id" data-group="id" data-toggle="doajaxchecked">取消推荐</a>
                                        <a href="{:U('Product/tours_show_istop?act=do')}" class="btn btn-default" data-icon="flag" data-idname="id" data-group="id" data-toggle="doajaxchecked">置顶</a>
                                        <a href="{:U('Product/tours_show_istop?act=un')}" class="btn btn-orange" data-idname="id" data-group="id" data-toggle="doajaxchecked">取消置顶</a>
                                        <a href="{:U('Product/tours_show_tehui?act=do')}" class="btn btn-default" data-icon="flag" data-idname="id" data-group="id" data-toggle="doajaxchecked">特惠</a>
                                        <a href="{:U('Product/tours_show_tehui?act=un')}" class="btn btn-orange" data-idname="id" data-group="id" data-toggle="doajaxchecked">取消特惠</a>
                                        <a href="{:U('Product/tours_show_index?act=do')}" class="btn btn-default" data-icon="flag" data-idname="id" data-group="id" data-toggle="doajaxchecked">首推</a>
                                        <a href="{:U('Product/tours_show_index?act=un')}" class="btn btn-orange" data-idname="id" data-group="id" data-toggle="doajaxchecked">取消首推</a>
                                        <a href="{:U('Product/tours_show_show?act=do')}" class="btn btn-default" data-icon="flag" data-idname="id" data-group="id" data-toggle="doajaxchecked">显示</a>
                                        <a href="{:U('Product/tours_show_show?act=un')}" class="btn btn-orange" data-idname="id" data-group="id" data-toggle="doajaxchecked">取消显示</a>
                                </li>
                        </ul>
                </div>
        </form>

</div>

<div class="bjui-pageContent">
        <table data-toggle="tablefixed" data-width="100%" data-layout-h="0" data-nowrap="true">
                <thead>
                        <tr>

                                <th width="22">
                                        <input type="checkbox" class="checkboxCtrl" data-group="id" data-toggle="icheck">
                                </th>
                                <th data-order-field="id" width="35">ID</th>
                                <th >橱柜标题</th>
                                <th align="center" width="40" data-order-field="isgood">推荐</th>
                                <th align="center" width="40" data-order-field="istop">置顶</th>
                                <th align="center" width="40" data-order-field="ispreference">特惠</th>
                                <th align="center" width="40" data-order-field="isindex">首推</th>
                                <th align="center" width="40" data-order-field="isnotshow">显示</th>
                                <th align="center" width="50">提交人</th>
                                <th align="center" width="100" data-order-field="dateline">更新时间</th>
                                <th width="120">操作</th>
                        </tr>
                </thead>
                <tbody>
                        {neq name="list" value=''}
                        {volist name="list" id="vo"}
                        <tr>
                                <td>
                                        <input type="checkbox" name="id" data-toggle="icheck" value="{$vo.id}">
                                </td>
                                <td>{$vo.id}</td>
                                <td>
                                        {eq name="vo.failure" value="true"}
                                        <span style="color:red;font-weight:bold;">[已过期]</span>
                                        {/eq}
                                        {notempty name="vo.code"}
                                        <span style="color:#0066CC;font-weight:bold;">[{$vo.code}]</span>
                                        {/notempty}
                                        <a href="{$vo.url}" target="_blank">{$vo.title}</a>
                                        {notempty name="vo.travelcompany"}
                                        <span style="color:rgb(192, 134, 10);font-weight:bold;">[供：{$vo.travelcompany}]</span>
                                        {/notempty}

                                </td>
                                <td align='center'>
                                        {eq name="vo['isgood']" value="0"}
                                        <a href="{:U('Product/tours_show_good?act=do&id='.$vo['id'])}" data-toggle="doajax">
                                                <img src="__ADMIN__theme/image/red.gif" title="推荐" align="absmiddle" width="16px" />
                                        </a>
                                        {else /}
                                        <a href="{:U('Product/tours_show_good?act=un&id='.$vo['id'])}" data-toggle="doajax">
                                                <img src="__ADMIN__theme/image/green.gif" title="不推荐" align="absmiddle" width="16px" />
                                        </a>
                                        {/eq}
                                </td>
                                <td align='center'>
                                        {eq name="vo['istop']" value="0"}
                                        <a href="{:U('Product/tours_show_istop?act=do&id='.$vo['id'])}" data-toggle="doajax">
                                                <img src="__ADMIN__theme/image/red.gif" title="置顶" align="absmiddle" width="16px" />
                                        </a>
                                        {else /}
                                        <a href="{:U('Product/tours_show_istop?act=un&id='.$vo['id'])}" data-toggle="doajax">
                                                <img src="__ADMIN__theme/image/green.gif" title="不置顶" align="absmiddle" width="16px" />
                                        </a>
                                        {/eq}
                                </td>
                                <td align='center'>
                                        {eq name="vo['ispreference']" value="0"}
                                        <a href="{:U('Product/tours_show_tehui?act=do&id='.$vo['id'])}" data-toggle="doajax">
                                                <img src="__ADMIN__theme/image/red.gif" title="特惠" align="absmiddle" width="16px" />
                                        </a>
                                        {else /}
                                        <a href="{:U('Product/tours_show_tehui?act=un&id='.$vo['id'])}" data-toggle="doajax">
                                                <img src="__ADMIN__theme/image/green.gif" title="不特惠" align="absmiddle" width="16px" />
                                        </a>
                                        {/eq}
                                </td>
                                <td align='center'>
                                        {eq name="vo['isindex']" value="0"}
                                        <a href="{:U('Product/tours_show_index?act=do&id='.$vo['id'])}" data-toggle="doajax">
                                                <img src="__ADMIN__theme/image/red.gif" title="首推" align="absmiddle" width="16px" />
                                        </a>
                                        {else /}
                                        <a href="{:U('Product/tours_show_index?act=un&id='.$vo['id'])}" data-toggle="doajax">
                                                <img src="__ADMIN__theme/image/green.gif" title="不首推" align="absmiddle" width="16px" />
                                        </a>
                                        {/eq}
                                </td>
                                <td align='center'>
                                        {eq name="vo['ischecked']" value="0"}
                                        <a href="{:U('Product/tours_show_show?act=do&id='.$vo['id'])}" data-toggle="doajax">
                                                <img src="__ADMIN__theme/image/red.gif" title="显示" align="absmiddle" width="16px" />
                                        </a>
                                        {else /}
                                        <a href="{:U('Product/tours_show_show?act=un&id='.$vo['id'])}" data-toggle="doajax">
                                                <img src="__ADMIN__theme/image/green.gif" title="不显示" align="absmiddle" width="16px" />
                                        </a>
                                        {/eq}
                                </td>
                                <td align="center">{$vo.username}</td>
                                <td align="center">{$vo.dateline|date="Y-m-d H:i",###}</td>
                                <td>
                                        <a href="{:U('Product/tours_add?do=copy&id='.$vo['id'])}" data-on-close="tours_navtab_onClose"  class="btn btn-orange" data-id='product_tours_add' data-toggle="navtab"  data-title="复制橱柜信息" data-icon="plus"></a>
                                        <a href="{:U('Product/tours_add?id='.$vo['id'])}" data-on-close="tours_navtab_onClose"  class="btn btn-green" data-id='product_tours_add' data-toggle="navtab"  data-title="编辑橱柜信息" data-icon="edit"></a>
                                        <a href="{:U('Product/tours_del?id='.$vo['id'])}" title="删除"  class="btn btn-red" data-toggle="doajax" data-confirm-msg="确定要删除该行信息吗？" data-icon="trash"></a>
                                </td>


                        </tr>
                        {/volist}
                        {else /}
                        <tr><td colspan="14" align="center">暂无记录</td></tr>
                        {/neq}
                </tbody>
        </table>

</div>
<div class="bjui-pageFooter">
        <div class="pages">
                <span> 每页&nbsp;</span>
                <div class="selectPagesize">
                        <select data-toggle="selectpicker" data-toggle-change="changepagesize" class="show-tick" >
                                <option {eq name="numPerPage" value="20"} selected="selected" {/eq} value="20">20</option>
                                <option {eq name='numPerPage' value='40'} selected="selected" {/eq} value="40">40</option>
                                <option {eq name='numPerPage' value='120'} selected="selected" {/eq} value="120">120</option>
                                <option {eq name='numPerPage' value='150'} selected="selected" {/eq} value="150">150</option>
                        </select>
                </div>
                <span>&nbsp;条,共 {$totalCount} 条 </span>


        </div>
        <div class="pagination-box" data-toggle="pagination" data-total="{$totalCount}" data-page-size="{$numPerPage}" data-page-current="{$currentPage}">
        </div>
</div>


